package com.mxchen.lottery.infr.gatewayimpl.activity.convert;

import cn.hutool.core.convert.Convert;
import com.mxchen.lottery.domain.strategy.model.AwardDetails;
import com.mxchen.lottery.infr.gatewayimpl.activity.model.Award;
import com.mxchen.lottery.infr.gatewayimpl.activity.model.StrategyDetail;

import java.util.List;

/**
 * @author : hmxchen
 * @program : lottery-964-mxchen
 * @description :
 * @create : 2021-12-17 10:17
 **/
public class AwardDetailsConvert {

    public static AwardDetails from(StrategyDetail strategyDetail){
        return Convert.convert(AwardDetails.class,strategyDetail);
    }
    public static AwardDetails from(Award award){
        return Convert.convert(AwardDetails.class,award);
    }
    public static List<AwardDetails> from(List<StrategyDetail> strategyDetail){
        return Convert.toList(AwardDetails.class,strategyDetail);
    }



}
